﻿@model IEnumerable<Catalog>
@Html.Extra()
<table>
    <thead>
        <tr>

            @if (Request["parentKey"] == "xzt")
            {
                <th>名称</th>
                <th>排序</th>
            }
            else
            {
                <th>名称</th>
                <th>代码</th>
                <th>是否导航</th>
                <th>是否汽派号</th>
                <th>排序</th>
            }
        </tr>
    </thead>
    <tbody>
        @foreach (var item in Model)
        {
            <tr id="@item.Id">
                @if (Request["parentKey"] == "xzt")
                {
                    <td>
                        @item.Name
                    </td>
                    <td>
                        @item.SortIndex
                    </td>
                }
                else
                {
                    <td>
                        @item.Name
                    </td>
                    <td>
                        @item.Key
                    </td>
                    <td>
                        @(item.IsNav ? "是" : "否")
                    </td>
                    <td>
                        @(item.IsQPH ? "是" : "否")
                    </td>
                    <td>
                        @item.SortIndex
                    </td>
                }
            </tr>
        }
    </tbody>
</table>
